package pattern.state.model;

public class Neutral extends Gear{

	
	public Neutral(Car car){
		this.car = car;
	}
	
	@Override
	public void accelerate() throws Exception {
		car.setText("OK, let's start.. 1 gear");
		car.setState(car.getFirstGear());
		
	}

	@Override
	public void slowDown() throws Exception {
		throw new IllegalStateException("Can't be slower...");
		
	}

	@Override
	public void goBack() throws Exception {
		car.setText("Reverse..");
		car.setState(car.getReverse());
		
	}

	@Override
	public void stop() throws Exception {
		throw new IllegalStateException("Already there!");
		
	}
	
	

}
